
import 'dart:ui';
import 'package:flame/game.dart';
import 'package:klondike/klondike/klondike_world.dart';
import '../enums/action.dart';

class KlondikeGame extends FlameGame {

  static const double cardWidth = 1000.0;
  static const double cardHeight = 1400.0;
  static const double cardGap = 175.0;
  static const double cardRadius = 45.0;
  static final Vector2 cardSize = Vector2(cardWidth, cardHeight);

  static const double topGap = 1000.0;
  static const double cardSpaceWidth = cardWidth + cardGap;
  static const double cardSpaceHeight = cardHeight + cardGap;

  static const double dragTolerance = cardWidth / 5;

  static final cardRRect = RRect.fromRectAndRadius(
    const Rect.fromLTWH(0, 0, cardWidth, cardHeight),
    const Radius.circular(cardRadius),
  );

  int fanoutNum = 1;

  @override
  Color backgroundColor() => const Color(0xff007E34);

  KlondikeGame() : super(world: KlondikeWorld());

  Action action = Action.newDeal;
}